<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Struct template basic_process</title>
<link rel="stylesheet" href="../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../boost_process/v2.html#doxygen.process_8hpp" title="Header &lt;boost/process/v2/process.hpp&gt;">
<link rel="prev" href="structboost_1_1process_1_1v2_1_1basic__popen_1_1rebind__executor.html" title="Struct template rebind_executor">
<link rel="next" href="structboost_1_1process_1_1v2_1_1basic__process_1_1async__wait__op__.html" title="Struct async_wait_op_">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../boost.png"></td>
<td align="center"><a href="../../../index.html">Home</a></td>
<td align="center"><a href="../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="structboost_1_1process_1_1v2_1_1basic__popen_1_1rebind__executor.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../boost_process/v2.html#doxygen.process_8hpp"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="structboost_1_1process_1_1v2_1_1basic__process_1_1async__wait__op__.html"><img src="../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Struct template basic_process</span></h2>
<p>boost::process::v2::basic_process — A class managing a subprocess. </p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../boost_process/v2.html#doxygen.process_8hpp" title="Header &lt;boost/process/v2/process.hpp&gt;">boost/process/v2/process.hpp</a>&gt;

</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Executor <span class="special">=</span> <span class="identifier">net</span><span class="special">::</span><span class="identifier">any_io_executor</span><span class="special">&gt;</span> 
<span class="keyword">struct</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html" title="Struct template basic_process">basic_process</a> <span class="special">{</span>
  <span class="comment">// types</span>
  <span class="keyword">typedef</span> <span class="identifier">Executor</span>                                 <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1abeae3023ee18fa2464478a1d1738087d"></a><span class="identifier">executor_type</span><span class="special">;</span>       <span class="comment">// The executor of the process. </span>
  <span class="keyword">typedef</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process__handle.html" title="Struct template basic_process_handle">basic_process_handle</a><span class="special">&lt;</span> <span class="identifier">executor_type</span> <span class="special">&gt;</span>    <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1ab90ca5edf5528c7c99ac593ed05633e1"></a><span class="identifier">handle_type</span><span class="special">;</span>         <span class="comment">// The non-closing handle type. </span>
  <span class="keyword">typedef</span> <span class="keyword">typename</span> <span class="identifier">handle_type</span><span class="special">::</span><span class="identifier">native_handle_type</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1abb17bb526ce0a613e38e02253be0dff1"></a><span class="identifier">native_handle_type</span><span class="special">;</span>  <span class="comment">// Provides access to underlying operating system facilities. </span>

  <span class="comment">// member classes/structs/unions</span>

  <span class="keyword">struct</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process_1_1async__wait__op__.html" title="Struct async_wait_op_">async_wait_op_</a> <span class="special">{</span>

    <span class="comment">// <a class="link" href="boost_container_header_reference/classboost_1_1container_1_1list.html#id46-bb">public member functions</a></span>
    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Self<span class="special">&gt;</span> <span class="keyword">void</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process_1_1async__wait__op__.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1_1async__wait__op___1ab6c5b758e7aa27e91d598ca12281b9b3"><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span></a><span class="special">(</span><span class="identifier">Self</span> <span class="special">&amp;&amp;</span><span class="special">)</span><span class="special">;</span>
    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Self<span class="special">&gt;</span> 
      <span class="keyword">void</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process_1_1async__wait__op__.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1_1async__wait__op___1ae1433b51aa501ba08d27bd3043408a9e"><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span></a><span class="special">(</span><span class="identifier">Self</span> <span class="special">&amp;&amp;</span><span class="special">,</span> <span class="identifier">error_code</span><span class="special">,</span> <span class="identifier">native_exit_code_type</span><span class="special">)</span><span class="special">;</span>

    <span class="comment">// public data members</span>
    <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process__handle.html" title="Struct template basic_process_handle">basic_process_handle</a><span class="special">&lt;</span> <span class="identifier">Executor</span> <span class="special">&gt;</span> <span class="special">&amp;</span> <span class="identifier">handle</span><span class="special">;</span>
    <span class="identifier">native_exit_code_type</span> <span class="special">&amp;</span> <span class="identifier">res</span><span class="special">;</span>
  <span class="special">}</span><span class="special">;</span>

  <span class="comment">// Rebinds the process_handle to another executor.</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Executor1<span class="special">&gt;</span> 
  <span class="keyword">struct</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process_1_1rebind__executor.html" title="Struct template rebind_executor">rebind_executor</a> <span class="special">{</span>
    <span class="comment">// types</span>
    <span class="keyword">typedef</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html" title="Struct template basic_process">basic_process</a><span class="special">&lt;</span> <span class="identifier">Executor1</span> <span class="special">&gt;</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process_1_1rebind__executor.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1_1rebind__executor_1a533ab45e9aafb8a5d8ffea040ec0effa"><span class="identifier">other</span></a><span class="special">;</span>  <span class="comment">// The socket type when rebound to the specified executor. </span>
  <span class="special">}</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="boost_interprocess_header_reference/classboost_1_1interprocess_1_1offset__ptr.html#id47-bb">public member functions</a></span>
  <span class="identifier">executor_type</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1af648b4fde338b12e2cb370a58a2b17ec"><span class="identifier">get_executor</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">handle_type</span> <span class="special">&amp;</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1aa9f2cf35795653290e3dc0667b79f1e5"><span class="identifier">handle</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">const</span> <span class="identifier">handle_type</span> <span class="special">&amp;</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a786529c22a04cf61551491cd5ea6ce21"><span class="identifier">handle</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a8050df55c79bdb1ec8163eb72faebe0e"><span class="identifier">basic_process</span></a><span class="special">(</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">default</span><span class="special">;</span>
  <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1ae800fa36bcb69e55c393e634e7f98d25"><span class="identifier">basic_process</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html" title="Struct template basic_process">basic_process</a> <span class="special">&amp;</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">delete</span><span class="special">;</span>
  <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html" title="Struct template basic_process">basic_process</a> <span class="special">&amp;</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a98b864b13c84df7dbece6a969a927abf"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html" title="Struct template basic_process">basic_process</a> <span class="special">&amp;</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">delete</span><span class="special">;</span>
  <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a1620a2e338a70f6b6285ffbdff6d993a"><span class="identifier">basic_process</span></a><span class="special">(</span><a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html" title="Struct template basic_process">basic_process</a> <span class="special">&amp;&amp;</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">default</span><span class="special">;</span>
  <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html" title="Struct template basic_process">basic_process</a> <span class="special">&amp;</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a74e928b8281367415cdd1d8206f4695e"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html" title="Struct template basic_process">basic_process</a> <span class="special">&amp;&amp;</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">default</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Executor1<span class="special">&gt;</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a4130419d3651d736a13830c4d4013b2d"><span class="identifier">basic_process</span></a><span class="special">(</span><a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html" title="Struct template basic_process">basic_process</a><span class="special">&lt;</span> <span class="identifier">Executor1</span> <span class="special">&gt;</span> <span class="special">&amp;&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="special">...</span> Inits<span class="special">&gt;</span> 
    <span class="keyword">explicit</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a13f9e7519edda26616d6c158dc2bd5ca"><span class="identifier">basic_process</span></a><span class="special">(</span><span class="identifier">executor_type</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">filesystem</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&amp;</span><span class="special">,</span> 
                           <span class="identifier">std</span><span class="special">::</span><span class="identifier">initializer_list</span><span class="special">&lt;</span> <span class="identifier">string_view</span> <span class="special">&gt;</span><span class="special">,</span> <span class="identifier">Inits</span> <span class="special">&amp;&amp;</span><span class="special">...</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Args<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Inits<span class="special">&gt;</span> 
    <span class="keyword">explicit</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1abab063da2aa9f27c8707f515d054f763"><span class="identifier">basic_process</span></a><span class="special">(</span><span class="identifier">executor_type</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">filesystem</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">Args</span> <span class="special">&amp;&amp;</span><span class="special">,</span> 
                           <span class="identifier">Inits</span> <span class="special">&amp;&amp;</span><span class="special">...</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> ExecutionContext<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Inits<span class="special">&gt;</span> 
    <span class="keyword">explicit</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a915c95c6a2c470b34a21b2597dd4087e"><span class="identifier">basic_process</span></a><span class="special">(</span><span class="identifier">ExecutionContext</span> <span class="special">&amp;</span><span class="special">,</span> 
                           <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">enable_if</span><span class="special">&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">is_convertible</span><span class="special">&lt;</span> <span class="identifier">ExecutionContext</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">net</span><span class="special">::</span><span class="identifier">execution_context</span> <span class="special">&amp;</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">filesystem</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&amp;</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span><span class="special">,</span> 
                           <span class="identifier">std</span><span class="special">::</span><span class="identifier">initializer_list</span><span class="special">&lt;</span> <span class="identifier">string_view</span> <span class="special">&gt;</span><span class="special">,</span> <span class="identifier">Inits</span> <span class="special">&amp;&amp;</span><span class="special">...</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> ExecutionContext<span class="special">,</span> <span class="keyword">typename</span> Args<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Inits<span class="special">&gt;</span> 
    <span class="keyword">explicit</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1af56b1d2043f7da56d4d871a6a4764e0f"><span class="identifier">basic_process</span></a><span class="special">(</span><span class="identifier">ExecutionContext</span> <span class="special">&amp;</span><span class="special">,</span> 
                           <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">enable_if</span><span class="special">&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">is_convertible</span><span class="special">&lt;</span> <span class="identifier">ExecutionContext</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">net</span><span class="special">::</span><span class="identifier">execution_context</span> <span class="special">&amp;</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">filesystem</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&amp;</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span><span class="special">,</span> 
                           <span class="identifier">Args</span> <span class="special">&amp;&amp;</span><span class="special">,</span> <span class="identifier">Inits</span> <span class="special">&amp;&amp;</span><span class="special">...</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">explicit</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a2138065b0c1cf2773659835b72305ec4"><span class="identifier">basic_process</span></a><span class="special">(</span><span class="identifier">executor_type</span><span class="special">,</span> <span class="identifier">pid_type</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">explicit</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a8482ac5ce398dc88bb14570ea6312e9b"><span class="identifier">basic_process</span></a><span class="special">(</span><span class="identifier">executor_type</span><span class="special">,</span> <span class="identifier">pid_type</span><span class="special">,</span> <span class="identifier">native_handle_type</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">explicit</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a41dc5c85db4cdf0aff57fb08ae879b29"><span class="identifier">basic_process</span></a><span class="special">(</span><span class="identifier">executor_type</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> ExecutionContext<span class="special">&gt;</span> 
    <span class="keyword">explicit</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a89fd9e826e7558101f8657a5b9ea344e"><span class="identifier">basic_process</span></a><span class="special">(</span><span class="identifier">ExecutionContext</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">pid_type</span><span class="special">,</span> 
                           <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">enable_if</span><span class="special">&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">is_convertible</span><span class="special">&lt;</span> <span class="identifier">ExecutionContext</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">net</span><span class="special">::</span><span class="identifier">execution_context</span> <span class="special">&amp;</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="keyword">void</span> <span class="special">*</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <span class="special">=</span> <span class="keyword">nullptr</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> ExecutionContext<span class="special">&gt;</span> 
    <span class="keyword">explicit</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a908716b53b890b6d026c63338ca5df6d"><span class="identifier">basic_process</span></a><span class="special">(</span><span class="identifier">ExecutionContext</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">pid_type</span><span class="special">,</span> <span class="identifier">native_handle_type</span><span class="special">,</span> 
                           <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">enable_if</span><span class="special">&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">is_convertible</span><span class="special">&lt;</span> <span class="identifier">ExecutionContext</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">net</span><span class="special">::</span><span class="identifier">execution_context</span> <span class="special">&amp;</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="keyword">void</span> <span class="special">*</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <span class="special">=</span> <span class="keyword">nullptr</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> ExecutionContext<span class="special">&gt;</span> 
    <span class="keyword">explicit</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1ac79e74396fae37a1001424164f91639d"><span class="identifier">basic_process</span></a><span class="special">(</span><span class="identifier">ExecutionContext</span> <span class="special">&amp;</span><span class="special">,</span> 
                           <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">enable_if</span><span class="special">&lt;</span> <span class="identifier">is_convertible</span><span class="special">&lt;</span> <span class="identifier">ExecutionContext</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">net</span><span class="special">::</span><span class="identifier">execution_context</span> <span class="special">&amp;</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="keyword">void</span> <span class="special">*</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <span class="special">=</span> <span class="keyword">nullptr</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a3798e8df065d796239bba03e4fd5327d"><span class="special">~</span><span class="identifier">basic_process</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1abf3e7ab69a5567581685a004a7db91fe"><span class="identifier">interrupt</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1acc1345c1be301c4465664c1660ce7d79"><span class="identifier">interrupt</span></a><span class="special">(</span><span class="identifier">error_code</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1ab8e504766f9d0cfc2b0fedc702225188"><span class="identifier">request_exit</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a24d367787e4d850a3b88085da930fd28"><span class="identifier">request_exit</span></a><span class="special">(</span><span class="identifier">error_code</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1af738eb285a41208a7f469d0de6aa8642"><span class="identifier">suspend</span></a><span class="special">(</span><span class="identifier">error_code</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a3275bc462c4d3b4d89276b1a096089d0"><span class="identifier">suspend</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a8f9e158ec8f25b760e6dcf0f456610c9"><span class="identifier">resume</span></a><span class="special">(</span><span class="identifier">error_code</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a6e954077fbf95b94afe0be9dd5fac6ed"><span class="identifier">resume</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1ab12b9f8679a2c7dc75f8e51185fcc584"><span class="identifier">terminate</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a46b8ff457dc1788960853cc1beb56597"><span class="identifier">terminate</span></a><span class="special">(</span><span class="identifier">error_code</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">int</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a847c06085fd3db0d133c9d0592a74032"><span class="identifier">wait</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">int</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a6b6e68380d89839587bd51b06dae48eb"><span class="identifier">wait</span></a><span class="special">(</span><span class="identifier">error_code</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">handle_type</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1aa5e280b95d73428ee125dfb13e6fb921"><span class="identifier">detach</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">native_handle_type</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a45c3416871a89bc395d7a901128789ed"><span class="identifier">native_handle</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">int</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1afc9a9c96c44ddbf9a33ae001d6a113f7"><span class="identifier">exit_code</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">pid_type</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a2642414731c647988907d6986f8bef0e"><span class="identifier">id</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">native_exit_code_type</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1ad728a68410c00e3684b86c44e1b6b76c"><span class="identifier">native_exit_code</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">bool</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a1f3313b673e3d445314495c40bee0353"><span class="identifier">running</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">bool</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a9424dcdd08b50b7347a18c0fd1dd4f47"><span class="identifier">running</span></a><span class="special">(</span><span class="identifier">error_code</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
  <span class="keyword">bool</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a6a5f0c9a58f914e4fcee14b5277885ad"><span class="identifier">is_open</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="identifier">Token</span> WaitHandler <span class="special">=</span> <span class="identifier">net</span><span class="special">::</span><span class="identifier">default_completion_token_t</span><span class="special">&lt;</span><span class="identifier">executor_type</span><span class="special">&gt;</span> <span class="special">&gt;</span> 
    <span class="keyword">auto</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html#doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a3ab2d8a8dfb6b16447be94b0f30fd743"><span class="identifier">async_wait</span></a><span class="special">(</span><span class="identifier">WaitHandler</span> <span class="special">&amp;&amp;</span> <span class="special">=</span> <span class="identifier">net</span><span class="special">::</span><span class="identifier">default_completion_token_t</span><span class="special">&lt;</span> <span class="identifier">executor_type</span> <span class="special">&gt;</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id-1.3.30.5.8.11.3.4"></a><h2>Description</h2>
<div class="refsect2">
<a name="id-1.3.30.5.8.11.3.4.2"></a><h3>
<a name="id47-bb"></a><code class="computeroutput">basic_process</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<pre class="literallayout"><span class="identifier">executor_type</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1af648b4fde338b12e2cb370a58a2b17ec"></a><span class="identifier">get_executor</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>Get the executor of the process. </li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">handle_type</span> <span class="special">&amp;</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1aa9f2cf35795653290e3dc0667b79f1e5"></a><span class="identifier">handle</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>Get the underlying non-closing handle. </li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">const</span> <span class="identifier">handle_type</span> <span class="special">&amp;</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a786529c22a04cf61551491cd5ea6ce21"></a><span class="identifier">handle</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Get the underlying non-closing handle. </li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a8050df55c79bdb1ec8163eb72faebe0e"></a><span class="identifier">basic_process</span><span class="special">(</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">default</span><span class="special">;</span></pre>
<p>An empty process is similar to a default constructed thread. It holds an empty handle and is a place holder for a process that is to be launched later. </p>
</li>
<li class="listitem"><pre class="literallayout"><a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1ae800fa36bcb69e55c393e634e7f98d25"></a><span class="identifier">basic_process</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html" title="Struct template basic_process">basic_process</a> <span class="special">&amp;</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">delete</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html" title="Struct template basic_process">basic_process</a> <span class="special">&amp;</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a98b864b13c84df7dbece6a969a927abf"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html" title="Struct template basic_process">basic_process</a> <span class="special">&amp;</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">delete</span><span class="special">;</span></pre></li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a1620a2e338a70f6b6285ffbdff6d993a"></a><span class="identifier">basic_process</span><span class="special">(</span><a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html" title="Struct template basic_process">basic_process</a> <span class="special">&amp;&amp;</span> lhs<span class="special">)</span> <span class="special">=</span> <span class="keyword">default</span><span class="special">;</span></pre>Move construct the process. It will be detached from <code class="computeroutput">lhs</code>. </li>
<li class="listitem">
<pre class="literallayout"><a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html" title="Struct template basic_process">basic_process</a> <span class="special">&amp;</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a74e928b8281367415cdd1d8206f4695e"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html" title="Struct template basic_process">basic_process</a> <span class="special">&amp;&amp;</span> lhs<span class="special">)</span> <span class="special">=</span> <span class="keyword">default</span><span class="special">;</span></pre>Move assign a process. It will be detached from <code class="computeroutput">lhs</code>. </li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Executor1<span class="special">&gt;</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a4130419d3651d736a13830c4d4013b2d"></a><span class="identifier">basic_process</span><span class="special">(</span><a class="link" href="structboost_1_1process_1_1v2_1_1basic__process.html" title="Struct template basic_process">basic_process</a><span class="special">&lt;</span> <span class="identifier">Executor1</span> <span class="special">&gt;</span> <span class="special">&amp;&amp;</span> lhs<span class="special">)</span><span class="special">;</span></pre>Move construct and rebind the executor. </li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="special">...</span> Inits<span class="special">&gt;</span> 
  <span class="keyword">explicit</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a13f9e7519edda26616d6c158dc2bd5ca"></a><span class="identifier">basic_process</span><span class="special">(</span><span class="identifier">executor_type</span> executor<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">filesystem</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&amp;</span> exe<span class="special">,</span> 
                         <span class="identifier">std</span><span class="special">::</span><span class="identifier">initializer_list</span><span class="special">&lt;</span> <span class="identifier">string_view</span> <span class="special">&gt;</span> args<span class="special">,</span> 
                         <span class="identifier">Inits</span> <span class="special">&amp;&amp;</span><span class="special">...</span> inits<span class="special">)</span><span class="special">;</span></pre>Construct a child from a property list and launch it using the default launcher.. </li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Args<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Inits<span class="special">&gt;</span> 
  <span class="keyword">explicit</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1abab063da2aa9f27c8707f515d054f763"></a><span class="identifier">basic_process</span><span class="special">(</span><span class="identifier">executor_type</span> executor<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">filesystem</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&amp;</span> exe<span class="special">,</span> 
                         <span class="identifier">Args</span> <span class="special">&amp;&amp;</span> args<span class="special">,</span> <span class="identifier">Inits</span> <span class="special">&amp;&amp;</span><span class="special">...</span> inits<span class="special">)</span><span class="special">;</span></pre>Construct a child from a property list and launch it using the default launcher.. </li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> ExecutionContext<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Inits<span class="special">&gt;</span> 
  <span class="keyword">explicit</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a915c95c6a2c470b34a21b2597dd4087e"></a><span class="identifier">basic_process</span><span class="special">(</span><span class="identifier">ExecutionContext</span> <span class="special">&amp;</span> context<span class="special">,</span> 
                         <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">enable_if</span><span class="special">&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">is_convertible</span><span class="special">&lt;</span> <span class="identifier">ExecutionContext</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">net</span><span class="special">::</span><span class="identifier">execution_context</span> <span class="special">&amp;</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">filesystem</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&amp;</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> exe<span class="special">,</span> 
                         <span class="identifier">std</span><span class="special">::</span><span class="identifier">initializer_list</span><span class="special">&lt;</span> <span class="identifier">string_view</span> <span class="special">&gt;</span> args<span class="special">,</span> 
                         <span class="identifier">Inits</span> <span class="special">&amp;&amp;</span><span class="special">...</span> inits<span class="special">)</span><span class="special">;</span></pre>Construct a child from a property list and launch it using the default launcher.. </li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> ExecutionContext<span class="special">,</span> <span class="keyword">typename</span> Args<span class="special">,</span> <span class="keyword">typename</span> <span class="special">...</span> Inits<span class="special">&gt;</span> 
  <span class="keyword">explicit</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1af56b1d2043f7da56d4d871a6a4764e0f"></a><span class="identifier">basic_process</span><span class="special">(</span><span class="identifier">ExecutionContext</span> <span class="special">&amp;</span> context<span class="special">,</span> 
                         <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">enable_if</span><span class="special">&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">is_convertible</span><span class="special">&lt;</span> <span class="identifier">ExecutionContext</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">net</span><span class="special">::</span><span class="identifier">execution_context</span> <span class="special">&amp;</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">filesystem</span><span class="special">::</span><span class="identifier">path</span> <span class="special">&amp;</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> exe<span class="special">,</span> 
                         <span class="identifier">Args</span> <span class="special">&amp;&amp;</span> args<span class="special">,</span> <span class="identifier">Inits</span> <span class="special">&amp;&amp;</span><span class="special">...</span> inits<span class="special">)</span><span class="special">;</span></pre>Construct a child from a property list and launch it using the default launcher. </li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">explicit</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a2138065b0c1cf2773659835b72305ec4"></a><span class="identifier">basic_process</span><span class="special">(</span><span class="identifier">executor_type</span> exec<span class="special">,</span> <span class="identifier">pid_type</span> pid<span class="special">)</span><span class="special">;</span></pre>Attach to an existing process. </li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">explicit</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a8482ac5ce398dc88bb14570ea6312e9b"></a><span class="identifier">basic_process</span><span class="special">(</span><span class="identifier">executor_type</span> exec<span class="special">,</span> <span class="identifier">pid_type</span> pid<span class="special">,</span> 
                       <span class="identifier">native_handle_type</span> native_handle<span class="special">)</span><span class="special">;</span></pre>Attach to an existing process and the internal handle. </li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">explicit</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a41dc5c85db4cdf0aff57fb08ae879b29"></a><span class="identifier">basic_process</span><span class="special">(</span><span class="identifier">executor_type</span> exec<span class="special">)</span><span class="special">;</span></pre>Create an invalid handle. </li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> ExecutionContext<span class="special">&gt;</span> 
  <span class="keyword">explicit</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a89fd9e826e7558101f8657a5b9ea344e"></a><span class="identifier">basic_process</span><span class="special">(</span><span class="identifier">ExecutionContext</span> <span class="special">&amp;</span> context<span class="special">,</span> <span class="identifier">pid_type</span> pid<span class="special">,</span> 
                         <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">enable_if</span><span class="special">&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">is_convertible</span><span class="special">&lt;</span> <span class="identifier">ExecutionContext</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">net</span><span class="special">::</span><span class="identifier">execution_context</span> <span class="special">&amp;</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="keyword">void</span> <span class="special">*</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <span class="special">=</span> <span class="keyword">nullptr</span><span class="special">)</span><span class="special">;</span></pre>Attach to an existing process. </li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> ExecutionContext<span class="special">&gt;</span> 
  <span class="keyword">explicit</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a908716b53b890b6d026c63338ca5df6d"></a><span class="identifier">basic_process</span><span class="special">(</span><span class="identifier">ExecutionContext</span> <span class="special">&amp;</span> context<span class="special">,</span> <span class="identifier">pid_type</span> pid<span class="special">,</span> 
                         <span class="identifier">native_handle_type</span> native_handle<span class="special">,</span> 
                         <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">enable_if</span><span class="special">&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">is_convertible</span><span class="special">&lt;</span> <span class="identifier">ExecutionContext</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">net</span><span class="special">::</span><span class="identifier">execution_context</span> <span class="special">&amp;</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="keyword">void</span> <span class="special">*</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <span class="special">=</span> <span class="keyword">nullptr</span><span class="special">)</span><span class="special">;</span></pre>Attach to an existing process and the internal handle. </li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> ExecutionContext<span class="special">&gt;</span> 
  <span class="keyword">explicit</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1ac79e74396fae37a1001424164f91639d"></a><span class="identifier">basic_process</span><span class="special">(</span><span class="identifier">ExecutionContext</span> <span class="special">&amp;</span> context<span class="special">,</span> 
                         <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">enable_if</span><span class="special">&lt;</span> <span class="identifier">is_convertible</span><span class="special">&lt;</span> <span class="identifier">ExecutionContext</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">net</span><span class="special">::</span><span class="identifier">execution_context</span> <span class="special">&amp;</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="keyword">void</span> <span class="special">*</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <span class="special">=</span> <span class="keyword">nullptr</span><span class="special">)</span><span class="special">;</span></pre>Create an invalid handle. </li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a3798e8df065d796239bba03e4fd5327d"></a><span class="special">~</span><span class="identifier">basic_process</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>Destruct the handle and terminate the process if it wasn't detached. </li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1abf3e7ab69a5567581685a004a7db91fe"></a><span class="identifier">interrupt</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>Sends the process a signal to ask for an interrupt, which the process may interpret as a shutdown. <p>Maybe be ignored by the subprocess.</p>
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
</li>
<li class="listitem"><pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1acc1345c1be301c4465664c1660ce7d79"></a><span class="identifier">interrupt</span><span class="special">(</span><span class="identifier">error_code</span> <span class="special">&amp;</span> ec<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1ab8e504766f9d0cfc2b0fedc702225188"></a><span class="identifier">request_exit</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a24d367787e4d850a3b88085da930fd28"></a><span class="identifier">request_exit</span><span class="special">(</span><span class="identifier">error_code</span> <span class="special">&amp;</span> ec<span class="special">)</span><span class="special">;</span></pre>Sends the process a signal to ask for a graceful shutdown. Maybe be ignored by the subprocess. <p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1af738eb285a41208a7f469d0de6aa8642"></a><span class="identifier">suspend</span><span class="special">(</span><span class="identifier">error_code</span> <span class="special">&amp;</span> ec<span class="special">)</span><span class="special">;</span></pre>Send the process a signal requesting it to stop. This may rely on undocumented functions. </li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a3275bc462c4d3b4d89276b1a096089d0"></a><span class="identifier">suspend</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>Send the process a signal requesting it to stop. This may rely on undocumented functions. </li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a8f9e158ec8f25b760e6dcf0f456610c9"></a><span class="identifier">resume</span><span class="special">(</span><span class="identifier">error_code</span> <span class="special">&amp;</span> ec<span class="special">)</span><span class="special">;</span></pre>Send the process a signal requesting it to resume. This may rely on undocumented functions. </li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a6e954077fbf95b94afe0be9dd5fac6ed"></a><span class="identifier">resume</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>Send the process a signal requesting it to resume. This may rely on undocumented functions. </li>
<li class="listitem"><pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1ab12b9f8679a2c7dc75f8e51185fcc584"></a><span class="identifier">terminate</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a46b8ff457dc1788960853cc1beb56597"></a><span class="identifier">terminate</span><span class="special">(</span><span class="identifier">error_code</span> <span class="special">&amp;</span> ec<span class="special">)</span><span class="special">;</span></pre>Unconditionally terminates the process and stores the exit code in exit_status. </li>
<li class="listitem"><pre class="literallayout"><span class="keyword">int</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a847c06085fd3db0d133c9d0592a74032"></a><span class="identifier">wait</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">int</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a6b6e68380d89839587bd51b06dae48eb"></a><span class="identifier">wait</span><span class="special">(</span><span class="identifier">error_code</span> <span class="special">&amp;</span> ec<span class="special">)</span><span class="special">;</span></pre>Waits for the process to exit, store the exit code internally and return it. <p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">handle_type</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1aa5e280b95d73428ee125dfb13e6fb921"></a><span class="identifier">detach</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>Detach the process. </li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">native_handle_type</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a45c3416871a89bc395d7a901128789ed"></a><span class="identifier">native_handle</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>Get the native. </li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">int</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1afc9a9c96c44ddbf9a33ae001d6a113f7"></a><span class="identifier">exit_code</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Return the evaluated exit_code. </li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">pid_type</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a2642414731c647988907d6986f8bef0e"></a><span class="identifier">id</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Get the id of the process;. </li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">native_exit_code_type</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1ad728a68410c00e3684b86c44e1b6b76c"></a><span class="identifier">native_exit_code</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>The native handle of the process. <p>This might be undefined on posix systems that only support signals </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">bool</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a1f3313b673e3d445314495c40bee0353"></a><span class="identifier">running</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>Checks if the current process is running. <p>If it has already completed the exit code will be stored internally and can be obtained by calling `exit_code. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">bool</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a9424dcdd08b50b7347a18c0fd1dd4f47"></a><span class="identifier">running</span><span class="special">(</span><span class="identifier">error_code</span> <span class="special">&amp;</span> ec<span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span></pre>
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">bool</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a6a5f0c9a58f914e4fcee14b5277885ad"></a><span class="identifier">is_open</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Check if the process is referring to an existing process. <p>Note that this might be a process that already exited. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="identifier">Token</span> WaitHandler <span class="special">=</span> <span class="identifier">net</span><span class="special">::</span><span class="identifier">default_completion_token_t</span><span class="special">&lt;</span><span class="identifier">executor_type</span><span class="special">&gt;</span> <span class="special">&gt;</span> 
  <span class="keyword">auto</span> <a name="doxygen.structboost_1_1process_1_1v2_1_1basic__process_1a3ab2d8a8dfb6b16447be94b0f30fd743"></a><span class="identifier">async_wait</span><span class="special">(</span><span class="identifier">WaitHandler</span> <span class="special">&amp;&amp;</span> handler <span class="special">=</span> <span class="identifier">net</span><span class="special">::</span><span class="identifier">default_completion_token_t</span><span class="special">&lt;</span> <span class="identifier">executor_type</span> <span class="special">&gt;</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span></pre>Asynchronously wait for the process to exit and deliver the native exit-code in the completion handler. </li>
</ol></div>
</div>
</div>
</div>
<div class="copyright-footer">Copyright © 2006-2012 Julio M. Merino Vidal, Ilya Sokolov,
      Felipe Tanus, Jeff Flinn, Boris Schaeling<br>Copyright © 2016 Klemens D. Morgenstern<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
      </p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="structboost_1_1process_1_1v2_1_1basic__popen_1_1rebind__executor.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../boost_process/v2.html#doxygen.process_8hpp"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="structboost_1_1process_1_1v2_1_1basic__process_1_1async__wait__op__.html"><img src="../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
